

export interface general {
    code: number;
    message: string;
    ok: boolean;
}

export interface skuAttrVL {
    attrId?: number | string | undefined; // 平台属性的 ID
    valueId?: number | string | undefined; // 属性值的 ID
    attrName?: number;
    id?: number;
}

export interface skuSalVL {
    saleAttrId?: number | string | undefined; // 属性 ID
    saleAttrValueId?: number | string | undefined; // 属性值的 ID
    saleAttrValueName?: number;
    id?: number;
}

export interface skuImg {
    id?: number;
    imgUrl?:string;
}

export interface addSkuData {
    category3Id: number | string; // 三级分类 ID
    spuId: number | string; // 已有的 SPU 的 ID
    tmId: number | string; // SPU 品牌的 ID
    weight: string; //sku 重量
    skuDesc: string; // SKU 的描述
    price: number | string; //sku 价格
    skuDefaultImg: string; // sku 图片地址
    skuName: string; // sku 的名字
    // 平台属性的收集
    skuAttrValueList: skuAttrVL[];
    // 销售属性
    skuSaleAttrValueList: skuSalVL[];
    isSale?: number;
    id?: number;
    skuImageList: skuImg[];
}

export interface platAndValue {
    platIdAndPlatValue:any
}

export interface findSkuInfo extends general {
    data: addSkuData[];
}

export interface lookAllSku {
    data: {
        records: addSkuData[];
        total: number | string;
        size: number;
        current: number;
        orders: [];
        optimizeCountSql: boolean;
        hitCount: boolean;
        countId: null;
        maxLimit: null;
        searchCount: boolean;
        pages: number;
        
    };
}

export interface lookSkuExt extends general {
    data: lookAllSku;
};